<?php

namespace App\Http\Controllers\web;

use App\Http\Controllers\Controller;
use App\Repository\RepositoryInterface\ShopInterface;
use Illuminate\Http\Request;
//商户类
class ShopController extends Controller
{
    //
    protected $shop;

    public function __construct(ShopInterface $shop){
        $this->shop = $shop;
    }
    /**
     * @return mixed
     * 查询所有评论
     */
    public function shopRemarkAll()
    {
        //查询所有评论
        return $this->shop->shopRemarkAll();
    }

    /**
     * @return mixed
     * 删除评论
     */
    public function shopRemarkDel(){
        //接受id
        $id = \request()->get('id');
        //删除
        return $this->shop->shopRemarkDel($id);
    }
}
